package com.yun.zf.common.admin.model.sys;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.yun.zf.common.validate.IsCardNo;
import com.yun.zf.common.validate.IsMobile;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AgentAddMo {
    @ApiModelProperty(value = "部门级联id",required = true)
    @ExcelProperty(value = "部门级联id")
    @NotNull(message = "部门级联id")
    private  String[] dept;
    @ApiModelProperty(value = "证件号码",required = true)
    @NotBlank(message = "证件号码不能为空")
    @ExcelProperty(value = "证件号码")
    @IsCardNo(message = "证件号码不正确")
    private String cardNo;
    @ApiModelProperty(value = "姓名",required = true)
    @NotBlank(message = "姓名不能为空")
    @ExcelProperty(value = "姓名")
    private String name;
    @ApiModelProperty(value = "手机号码",required = true)
    @NotBlank(message = "手机号码不能为空")
    @ExcelProperty(value = "手机号码")
    @IsMobile(message = "手机号码不正确")
    private String iphone;
    @ApiModelProperty(value = "状态",required = true)
    @NotNull(message = "状态不能为空")
    @ExcelProperty(value = "状态")
    private int status;
    @ApiModelProperty(value = "邮箱")
    @ExcelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "岗位")
    @ExcelProperty(value = "岗位")
    private Long postId;
    @ApiModelProperty(value = "角色列表")
    @ExcelProperty(value = "角色列表")
    private Long[] roleIds;

    @ApiModelProperty(value = "城市级联",required = true)
    @NotNull(message = "城市级联")
    private String[] city;

    @ApiModelProperty(value = "备注")
    private String remarks;
}
